<input type="radio" value="<%=answerid%>" name="<%=qid%>" /><%=answername%></td></tr>
来源:百度知道 编辑:UC知道 时间:2024/06/18 04:59:24
<input type="radio" value="<%=answerid%>" name="<%=qid%>" /><%=answername%></td></tr>
在第二个页面中怎么得到name="<%=qid%>" 的值value="<%=answerid%>"
在第二个页面中怎么得到name="<%=qid%>" 的值value="<%=answerid%>"
这么写
第一个页面,放两个hidden把值放进去,传到处理的action或servlet里
<form action=这里是action或者servlet>
<input type="hidden" name="test1" value="<%=answerid%>">
<input type="hidden" name="test1" value="<%=qid%>">
</form>
action里getAttribute setAttribute 一下就行了。
第二个页面以相同的方法拿就行了。
<%
Stirng qid=request.getAttribute("test1")
%>
直接用控件不太可能。第二个页面肯定要知道第一个页面中控件的名字阿
不过可以用session来传递名字
把 input 放在 Form表单中用Post传递出去
或者用Session
Session("name")=<%=name%>
或者如果是超链接
就在连接后边加?name=<%=XXXX%>&answername=<%=ansername%>
<INPUT class=input_val type=password
关于<input type=radio>的问题???
<input type="image" src="...">看看这个代码
<input type=file name=filename>能初始化里边的值吗?
jsp问题<input type="hidden" datafld="userId" />
要使用 <input type="text"> 里填写的数据作为参数
<input type="image">图片按钮怎么做成有提交的功能??
<input type="image" 网页表单提交的”怪“问题?高手进!!
福州至贵阳货物托运,运费怎么个算?><input type=
<input type="textarea" >输入满一行怎样自动换行?